<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="advList" method="post">
		<div align="center">
			位置:<select name="position">
			      <option value="0">请选择</option>
	              <option value="1">首页滚动焦点广告</option>
	              <option value="2">首页横幅广告-1</option>
	              <option value="3">首页横幅广告-2</option>
	              </select>
			<input type="submit" value="查询"/>
			 <a href="addAdv.jsp">添加</a>
		</div>
	</form>
	<table border="1" align="center">
		<tr>
			<td>编号</td>
			<td>图片</td>
			<td>路径</td>
			<td>位置</td>
			<td>操作</td>
		</tr>
		<c:forEach var="a" items="${list}">
			<tr>
				<td>${a.id}</td>
				<td>${a.img}</td>
				<td>${a.url}</td>
				<td>${a.position}</td>
				<td>
				      <a href="updateAdv?id=${a.id}">修改</a>
				      <a href="deleteAdv?id=${a.id}">删除</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>